<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/css.css">

</head>

<body class="container">

<div>

<form id="form" class="form-horizontal  checkForm" role="form" action="topic/add" method="post">
   <div class="form-group">
    <label for="name" class="col-sm-2 control-label">主题名称</label>
    <div class="col-sm-10">
        <input type="text" class="form-control" name="topic.name" check="string" maxlength="255"/>
    </div>
  </div>
 
   <div class="form-group">
    <label for="name" class="col-sm-2 control-label">主题简介</label>
    <div class="col-sm-10">
        <input type="text" class="form-control" name="topic.content" check="string" maxlength="255"/>
    </div>
  </div>
 
   <div class="form-group">
    <label for="name" class="col-sm-2 control-label">章节数</label>
    <div class="col-sm-10">
        <input type="text" class="form-control" name="topic.chapterCount" check="int" maxlength="10"/>
    </div>
  </div>
 
</form>


</div>


 <script src="assets/js/jquery-1.11.1.min.js"></script>
 <script src="assets/js/bootstrap.min.js"></script>
 <script src="assets/js/js.js"></script>
  <script type="text/javascript">
  function submitForm(){
    $("#form").submit();
  }
 </script>
</body>
</html>
